﻿@model FlyingClub.Models.Flight

@{
    ViewBag.Title = "Supprimer";
}

<h1>@ViewBag.Title</h1>

<h3>Est-ce vous sûr de vouloir supprimer ce vol ?</h3>

<table class="flights-tab">
    <tbody>
        <tr>
            <td>Date de départ</td>
            <td>Aéroport de départ</td>
            <td>Date d'arrivée</td>
            <td>Aéroport d'arrivée</td>
            <td>Pilote</td>
            <td>Etudiant</td>
            <td>Transaction</td>
            <td>Avion</td>
        </tr>
        <tr>
            <td>@Html.DisplayFor(model => model.DepartureDate)</td>
            <td>@Html.DisplayFor(model => model.DepartureAirfield)</td>
            <td>@Html.DisplayFor(model => model.ArrivalDate)</td>
            <td>@Html.DisplayFor(model => model.ArrivalAirfield)</td>
            <td>@Html.DisplayFor(model => model.Pilot.Firstname) @Html.DisplayFor(model => model.Pilot.Lastname)</td>
            <td>@Html.DisplayFor(model => model.Student.Firstname) @Html.DisplayFor(model => model.Student.Lastname)</td>
            <td>@Html.DisplayFor(model => model.Transaction.Description)</td>
            <td>@Html.DisplayFor(model => model.Plane.Name) @Html.DisplayFor(model => model.Plane.Number)</td>
        </tr>
    </tbody>
</table>

@using (Html.BeginForm()) {
    <p>
        <input type="submit" />
        <input type="submit" value="Supprimer" />
        <a href="/Flights/List#admin-flights">Retour à la liste</a>
    </p>
    <p class="break-line"></p>
}
